package cn.itsource.pethome_0310.org.mapper;

import cn.itsource.pethome_0310.basic.base.MybaseMapper;
import cn.itsource.pethome_0310.basic.domain.BaseQuery;
import cn.itsource.pethome_0310.basic.domain.JSONResult;
import cn.itsource.pethome_0310.org.domain.Department;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.entity.Example;

import java.util.List;

public interface DeptMapper extends MybaseMapper<Department> {

    default Class<Department> getTClasss(){
        return Department.class;
    };

    List<Department> findAll();


    List<Department> findPage(BaseQuery baseQuery);

    List<Department> findTree();

    /**
     * java8 以后  default 关键字可以作用在接口上
     * @param ids
     */


    //void insert(Department department);
}
